package com.gmadmin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gmadmin.common.BaseEntity;
import com.gmadmin.enums.MessageLevelEnum;

import java.io.Serializable;

/**
 * 消息通知表
 *
 * @author zl.sir
 * @since 2022-08-02
 */
@TableName("message_notice")
public class MessageNotice extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 8484098704973581635L;
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO,value = "id")
    private Long id;

    /**
     * 消息ID
     */
    @TableField("msg_info_id")
    private Long msgInfoId;

    /**
     * 已读状态 0-未读 1-已读
     */
    @TableField("state")
    private Long state;

    /**
     * 接收者ID
     */
    @TableField("receive_id")
    private Long receiveId;

    /**
     * 消息类型 1-系统消息  100-其他
     */
    @TableField("type")
    private Long type;

    /**
     * 消息级别枚举
     */
    private MessageLevelEnum level;


    @TableLogic
    private Long flag;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public Long getMsgInfoId() {
        return msgInfoId;
    }

    public void setMsgInfoId(Long msgInfoId) {
        this.msgInfoId = msgInfoId;
    }


    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }


    public Long getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }


    public Long getFlag() {
        return flag;
    }

    public void setFlag(Long flag) {
        this.flag = flag;
    }


    public MessageLevelEnum getLevel() {
        return level;
    }

    public void setLevel(MessageLevelEnum level) {
        this.level = level;
    }

}
